﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using BlogsAPI.Abstract;
using Newtonsoft.Json.Linq;

namespace BlogsAPI.Images
{
    /// <summary>
    /// Популярный мобильный фотохостинг
    /// </summary>
    /// <remarks>http://img.ly/llkE => http://img.ly/show/thumb/llkE</remarks>
    [SingleImager(Link = "http://img.ly")]
    public class Imgly : ImageServer
    {
        public override string GetThumb(string sLink)
        {
            if (String.IsNullOrEmpty(sLink)) return "";
            return sLink.ToLower().Replace("img.ly/", "img.ly/show/thumb/");
        }
    }
}
